﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AMS.Configuration
{
    /// <summary>
    /// 视图的配置
    /// </summary>
    public interface IViewConfig
    {
        /// <summary>
        /// 获取默认的配置信息
        /// </summary>
        /// <param name="viewName"></param>
        /// <returns></returns>
        ViewInfo GetDefaultConfig(string viewName);

        /// <summary>
        /// 获取某个用户特定的配置信息
        /// </summary>
        /// <param name="viewName"></param>
        /// <param name="userName"></param>
        /// <returns></returns>
        ViewInfo GetUserConfig(string viewName, string userName);

        /// <summary>
        /// 获取用于配置的
        /// </summary>
        /// <param name="viewName"></param>
        /// <param name="userName"></param>
        /// <returns></returns>
        ViewInfo GetUserConfigForEdit(string viewName, string userName);

        /// <summary>
        /// 保存用户的配置信息
        /// </summary>
        /// <param name="view"></param>
        void SaveUserConfig(ViewInfo view);
    }
}
